package com.rzjm.api.service.impl;

import com.rzjm.api.dao.DeviceRangeFeedRecordDao;
import com.rzjm.api.entity.DeviceRangeFeedRecord;
import com.rzjm.api.service.DeviceRangeFeedRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DeviceRangeFeedRecordServiceImpl extends BaseServiceImpl<DeviceRangeFeedRecordDao, DeviceRangeFeedRecord> implements DeviceRangeFeedRecordService {

    @Resource
    private DeviceRangeFeedRecordDao rangeFeedRecordDao;

    @Override
    public int addFeedRecord(DeviceRangeFeedRecord feedRecord) {
        try{
            int ret = rangeFeedRecordDao.insert(feedRecord);
            return ret;

        }catch (Exception e){
            e.printStackTrace();
        }
        return 0;
    }
}
